package com.aidex.biz.mapper;

import com.aidex.common.core.mapper.BaseMapper;
import com.aidex.biz.domain.MessageInfo;

import java.util.List;

/**
 * 系统消息Mapper接口
 *
 * @author sean
 * @email 2074844820@qq.com
 * @date 2025-03-06
 */
public interface MessageInfoMapper extends BaseMapper<MessageInfo> {

    /**
     * 批量删除系统消息
     *
     * @param ids 需要删除的系统消息ID集合
     * @return
     */
    public int deleteMessageInfoByIds(String[] ids);

    /**
     * 获取最大编号
     *
     * @param messageInfo 系统消息
     * @return 结果
     */
    public Integer findMaxSort(MessageInfo messageInfo);

    /**
     * 批量更新已读状态
     *
     * @param messageInfo
     * @return
     */
    public Integer updateIsReadMulti(MessageInfo messageInfo);

    public Integer insertBatch(List<MessageInfo> list);

}
